//
//  BLMeetFooter.m
//  Byelone
//
//  Created by 乔小乔 on 2021/2/28.
//

#import "BLMeetFooter.h"

@implementation BLMeetFooter

- (void)awakeFromNib {
    [super awakeFromNib];
     
}
- (void)layoutSubviews{
    [super layoutSubviews];
    [self.btnChat setGradientBackgroundWithColors:@[[UIColor chColorWithHexString:@"#8881FD"],[UIColor chColorWithHexString:@"#6B71F5"]] locations:@[@(0.0f), @(1.0f)]  startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
    [self.btnUnLike setGradientBackgroundWithColors:@[[UIColor chColorWithHexString:@"#C7C7C7"],[UIColor chColorWithHexString:@"#A8A8A8"]] locations:@[@(0.0f), @(1.0f)]  startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
    [self.btnLike setGradientBackgroundWithColors:@[[UIColor chColorWithHexString:@"#FCB280"],[UIColor chColorWithHexString:@"#FF8604"]] locations:@[@(0.0f), @(1.0f)]  startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
}
- (IBAction)clickChat:(UIButton *)sender {
    if (self.myBlock) {
        self.myBlock(0);
    }
}
- (IBAction)clickLike:(UIButton *)sender {
    if (self.myBlock) {
        self.myBlock(1);
    }
}
- (IBAction)clickUnLike:(id)sender {
    if (self.myBlock) {
        self.myBlock(2);
    }
}

@end
